package aiku.numericalcontroloa.Mapper;

import aiku.numericalcontroloa.Model.Entity.Devices;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
* @author 马
* @description 针对表【devices】的数据库操作Mapper
* @createDate 2024-02-26 15:22:30
* @Entity aiku.numericalcontroloa.Model.Entity.Devices
*/
@Mapper
public interface DevicesMapper extends BaseMapper<Devices> {

    /**
     * 根据id列表批量查询
     * @param devicesIdList
     * @return
     */
    List<Devices> selectBatchByIdWithDelete(@Param(value = "list") Collection<String> devicesIdList);

    /**
     * 根据id批量修改产品数量，成本价，运费
     * @param devicesList
     * @return
     */
    void updateCountBatchById(@Param(value = "list")List<Devices> devicesList);
}




